package toster;

import java.io.FileNotFoundException;
import javax.swing.JFileChooser;

/**
 *
 * @author rcluster
 */
public class Main {
   
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try{
        JFileChooser fc = new JFileChooser();
		fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);
		int retval = fc.showOpenDialog(null);
		if(retval == JFileChooser.APPROVE_OPTION){
			new Driver(fc.getSelectedFile());
					  }
        }catch(FileNotFoundException e){
            System.out.println(e);
        }
    }

}
